﻿@model XPressify.Models.RegisterModel

@{
    ViewBag.Title = "XPressify - Register";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script type="text/javascript">
    $(function () {
        $(".dateTimePicker").datepicker({
            changeMonth: true,
            changeYear: true,
            dateFormat: 'yy-mm-dd',
            minDate: '-100y',
            maxDate: '-1y',
            yearRange: '1900:2010'
        });
    });
</script>

<h2>Register</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Fields</legend>
         
        <div class="editor-field">
            @Html.LabelFor(model => model.FirstName) : <br />
            @Html.TextBoxFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>
            
        <div class="editor-field">
            @Html.LabelFor(model => model.LastName) : <br />
            @Html.TextBoxFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>
         
        <div class="editor-field">
            @Html.LabelFor(model => model.Gender) : <br />
            @Html.DropDownListFor(model => model.Gender, new List<SelectListItem> { new SelectListItem { Text = "Male", Value = "M" }, new SelectListItem { Text = "Female", Value = "F" } })
            @Html.ValidationMessageFor(model => model.Gender)
        </div>
            
        <div class="editor-field">
            @Html.LabelFor(model => model.Birthday) : <br />
            @Html.EditorFor(model => model.Birthday)
            @Html.ValidationMessageFor(model => model.Birthday)
        </div>
        
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
        </div>
           
        <div class="editor-field">
            @Html.LabelFor(model => model.Password) : <br />
            @Html.PasswordFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>
            
        <div class="editor-field">
            @Html.LabelFor(model => model.ConfirmPassword) : <br />
            @Html.PasswordFor(model => model.ConfirmPassword)
            @Html.ValidationMessageFor(model => model.ConfirmPassword)
        </div>
            
        <p>
            <input type="submit" value="Register" />
        </p>
    </fieldset>
}
